/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
 //获取当前tab的tabid。
navTab.getCurrentTabId=function(){
        return this._getTabs().eq(this._currentIndex).attr("tabid");
}
function createHref(thisa){
    var url = thisa.href;    
    if (url.indexOf("tabid")>0)return;
    thisa.href= url.indexOf("?")>0?url+"&tabid="+navTab.getCurrentTabId():url+"?tabid="+navTab.getCurrentTabId();
}
function onCompleteFileUpload(event, queueId, fileObj, response, data){
    var json = DWZ.jsonEval(response);
    DWZ.ajaxDone(json);    
    //返回状态成功。
    if (json.statusCode == DWZ.statusCode.ok){
        var $photoTurn = $("#photoTurn");
        if ($.trim($photoTurn.val()).length>0){
            $photoTurn.val($photoTurn.val()+","+json.saveFileName);
        }else{
            $photoTurn.val(json.saveFileName);
        }
    }
}

/*刪除图片的回调*/
function deleteProductPicCallbak(json){
    navTabAjaxDone(json);
    navTab._reload(navTab._getTabs().eq(navTab._currentIndex), true);
}